﻿using Volo.Abp.DependencyInjection;
using Volo.Abp.Domain.Services;
using YAPACS.BusinessObjects.Services;

namespace YAPACS.RisServer.Services;

public class StationCodeProvider(IHttpContextAccessor context) : DomainService, IStationCodeProvider, ITransientDependency
{
    private readonly HttpContext _context = context.HttpContext;

    public string GetStationCode() => _context?.Request.Cookies["StationCode"]?.ToUpperInvariant();
}
